package com.wanxi.util;

import java.util.Arrays;
import java.util.Random;

public class Socre {

    public static void main(String[] args) {
        int[] arr = new int[30];
// 至少有两个同学99分
        setArray(arr);
        System.out.println(Arrays.toString(arr));
    }

    private static void setArray(int[] arr) {
        arr[0] = 99;
        arr[1] = 99;
        for (int i = 2; i < arr.length; i++) {

            arr[i] = new Random().nextInt(51) * 2;
        }

    }
}
